-
-
Notifications
You must be signed in to change notification settings - Fork 569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add validators and refactor soft parameter (Splited from 197) #235
Conversation
pitbulk
commented
May 12, 2015
- Avoid the use of the soft parameter in each validator.
- Refact validations.
- Add test.
…ft parameter from validators. Created the ivar soft that is initialized with the settings.soft. Removed the validate! method
Re-factorized the soft parameters of validators on the Logoutresponse class. @Lordnibbler, @luisvm Please validate this so I can do the same on Response and LogooutRequest classes. |
👍 |
@phlipper this change is what you suggested at #197 (comment) ?? |
@pitbulk this looks like a nice improvement, thanks! |
def valid_response(opts = {}) | ||
opts = default_response_opts.merge!(opts) | ||
def valid_logout_response_document(opts = {}) | ||
opts = default_logout_response_opts.merge!(opts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we really want to alter default_logout_response_opts
? it's being modified when using merge!
👍 lgtm! |
Add validators and refactor soft parameter (Splited from 197)